<template>
  <div id="app">
        <router-view/>
  </div>
</template>

<script>
import DingtalkEnv from 'dingtalk-javascript-env'
import {setDingHeader} from '@/commom/js/ding-web'
import {mapMutations} from 'vuex'
export default {
  name: 'App',
  created() {
    // 设置移动端钉钉头部
    if (DingtalkEnv.isDingTalk && (DingtalkEnv.isWebiOS || DingtalkEnv.isWebAndroid)) {
      setDingHeader()
      this.setDingEvn(true)
    }
  },
  methods: {
    ...mapMutations({
      setDingEvn: 'SET_DING_EVEN'
    })
  }
}
</script>

<style lang="scss">
  #app{
    width: 100%;
    height: 100%;
  }
</style>
